 //
//  LockVIew.m
//  04-手势解锁
//
//  Created by J on 15/11/17.
//  Copyright © 2015年 J. All rights reserved.
//

#import "LockVIew.h"

@implementation LockVIew

//手动创建视图的时候调用
- (instancetype)initWithFrame:(CGRect)frame{
    

    if (self = [super initWithFrame:frame]) {
    
        NSLog(@"%s",__func__);

        
    }
    
    return self;
    
}

//调用顺序 先解析  再调用解析完成的方法
//-[LockVIew initWithCoder:]
//-[LockVIew awakeFromNib]

//解析xib 的时候调用
- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    if (self = [super initWithCoder:aDecoder]) {
     //添加按钮
        NSLog(@"%s",__func__);
        
        
    }
    
    return self;
    
    
}

//加载xib完成的时候调用
- (void)awakeFromNib{
    
//    for (int i= 0; i<9; i++) {
        NSLog(@"%s",__func__);

        
        
//    }
    
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
